package main

import (
	"fmt"
	"math"
	"math/cmplx"
)

var (
	aa = 33
	bb = "bbb"
	cc = "ccc"
)

func variable() {
	a, b, c := 1, "true", "eagle"
	fmt.Println(a, b, c)
}

func euler() {

	fmt.Println(cmplx.Exp(1i*math.Pi) + 1)
}
func triangle() {
	var a, b int = 3, 4
	var c int
	c = int(math.Sqrt(float64(a*a + b*b)))
	fmt.Println(c)

}
func consts() {
	const a, b = 3, 4
	var c = math.Sqrt(a*a + b*b)
	fmt.Println(c)

	const (
		java   = "java"
		python = "python"
		goland = "goland"
	)
	fmt.Println(java, python, goland)
}

func enums() {
	const (
		java = iota
		_
		_
		python
		goland
		cpp
	)
	fmt.Println(java, python, goland, cpp)

	const (
		b = 1 << (10 * iota)
		kb
		mb
		gb
		tb
		pb
	)
	fmt.Println(b, kb, mb, gb, tb, pb)
}

func main() {
	//variable()
	//fmt.Println(aa, bb, cc)
	//euler()
	//triangle()
	//consts()
	enums()
}
